package com.controller;

import com.service.ServiceB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BController {

    @Autowired
    private ServiceB serviceB;

    @RequestMapping("/add")
    public int add(int x,int y){
        int sum=serviceB.add(x,y);
        return sum;
    }

}
